/********************************************************************************
 * CreateWantedAction.java
 *
 * Created by Jigar Mistry
 * Last modified Date: Nov 11, 2008 4:20:03 PM by Jigar Mistry
 * Version : 0.1
 * Copyright (c) 2008 - 2009 cyberThink Infotech Pvt. Ltd., All rights reserved.
 ********************************************************************************/
package com.printeverywhere.action;

import java.util.List;

import com.printeverywhere.delegator.LocationCategoriesServiceDelegator;
import com.printeverywhere.dto.LocationCategories;
import com.printeverywhere.util.AdminConstants;
import com.printeverywhere.util.SearchListCriteria;

public class CreateWantedAction extends FrontBaseSupport {

	/**  */
	private static final long serialVersionUID = 1L;

	/** The region list. */
	private List<LocationCategories> regionList = getRegionListByLevel();

	public CreateWantedAction() {
		super(false, false);
	}

	public String execute() {
		return SUCCESS;
	}

	/**
	 * Gets the country list by level.
	 *
	 * @return the country list by level
	 */
	public List<LocationCategories> getRegionListByLevel() {
		SearchListCriteria searchListCriteria = new SearchListCriteria();

		searchListCriteria.setAttribute(AdminConstants.LEVEL, new Object[] {
				AdminConstants.ONE_NUMBER, SearchListCriteria.EQ });
		return LocationCategoriesServiceDelegator.getList(searchListCriteria);
	}

	public List<LocationCategories> getRegionList() {
		return regionList;
	}
}
